<let/x=0/>
<lifecycle
  onMount() { document.getElementById("ref").textContent = "Mount " + x; }
  onUpdate() { document.getElementById("ref").textContent = "Update " + x; }
/>
<div#ref/>
<button#increment onClick() { x++ }>Increment</button>
